//
//  UserInfo.h
//  CarCare
//
//  Created by ileo on 14-8-11.
//  Copyright (c) 2014年 baozun. All rights reserved.
//

#import <SimpleProperty/AIUserDefaultObject.h>
#import "DateModel.h"

#define USERINFO [AIUserInfo sharedInstance]


@interface AIUserInfo : AIUserDefaultObject

+ (instancetype)sharedInstance;

@property (nonatomic, copy) NSString *tel;
@property (nonatomic, copy) NSString *session;
@property (nonatomic, assign) NSInteger userID;

-(NSString *)iczkey;

@property (nonatomic, copy) NSString *token;

#pragma mark - login
@property (nonatomic, assign) BOOL isLogin;
@property (nonatomic, assign) BOOL isVisiter;

-(NSString *)showName;
-(NSString *)showImageURL;

#pragma mark - tel
@property (nonatomic, copy) NSString *userName;
@property (nonatomic, copy) NSString *headImageURL;

#pragma mark - ali
@property (nonatomic, copy) NSString *aliAccount;
@property (nonatomic, copy) NSString *aliBindingTime;
@property (nonatomic, copy) NSString *aliRealName;
@property (nonatomic, copy) NSString *aliIDCard;
@property (nonatomic, assign) BOOL aliIsBinding;

#pragma mark - 适配度
@property (nonatomic, assign) NSInteger fitFlag;
@property (nonatomic, assign) BOOL adaption_Voltage;//是否有电压
@property (nonatomic, assign) BOOL adaption_Mileage;//是否有里程
@property (nonatomic, assign) BOOL adaption_Oil;//是否有油量

#pragma mark - car
@property (nonatomic, copy) NSString *carNo;//车牌号
@property (nonatomic, copy) NSString *device;
@property (nonatomic, copy) NSString *deviceBindingTime;
@property (nonatomic, copy) NSString *deviceCode;
@property (nonatomic, copy) NSString *pastDevice;//绑定设备号

-(DateModel *)bindingDay;//绑定时间

@property (nonatomic, assign) NSInteger vehicleId;

@property (nonatomic, assign) NSInteger carStyleID;//绑定车型ID
@property (nonatomic, assign) NSInteger carModelID;//绑定车系ID
@property (nonatomic, copy) NSString *carBrand;//车牌
@property (nonatomic, copy) NSString *carModel;//车系
@property (nonatomic, copy) NSString *carStyle;//车型

-(NSString *)carInfoName;

@property (nonatomic, copy) NSString *engineNO;//发动机号
@property (nonatomic, copy) NSString *vinNO;//车架号

@property (nonatomic, copy) NSString *carImageURL;//车图片
@property (nonatomic, copy) NSString *carIconImageURL;//车标图片

@end
